<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns number of errors and last error message</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.session-pgsql-add-error.html">session_pgsql_add_error</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.session-pgsql-get-field.html">session_pgsql_get_field</a></div>
 <div class="up"><a href="ref.session-pgsql.html">Session PgSQL 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.session-pgsql-get-error" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">session_pgsql_get_error</h1>
  <p class="verinfo">(PECL session_pgsql SVN)</p><p class="refpurpose"><span class="refname">session_pgsql_get_error</span> &mdash; <span class="dc-title">Returns number of errors and last error message</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.session-pgsql-get-error-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">array</span> <span class="methodname"><strong>session_pgsql_get_error</strong></span>
    ([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$with_error_message</code><span class="initializer"> = false</span></span>
  ] )</div>

  <p class="para rdfs-comment">
   Get the number of errors and optional the error messages.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.session-pgsql-get-error-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">with_error_message</code></em></dt>

     <dd>

      <p class="para">
       Set to <strong><code>TRUE</code></strong> the literal error message for each error is also returned.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.session-pgsql-get-error-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The number of errors are returned as <span class="type"><a href="language.types.array.html" class="type array">array</a></span>.
  </p>
 </div>


 


 <div class="refsect1 seealso" id="refsect1-function.session-pgsql-get-error-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.session-pgsql-add-error.html" class="function" rel="rdfs-seeAlso">session_pgsql_add_error()</a> - Increments error counts and sets last error message</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.session-pgsql-add-error.html">session_pgsql_add_error</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.session-pgsql-get-field.html">session_pgsql_get_field</a></div>
 <div class="up"><a href="ref.session-pgsql.html">Session PgSQL 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
